/**
 * Created by Administrator on 2016/7/23.
 */
$(document).ready(function(){
    $("#mainPart section:nth-child(2)").click(function(){
        location.href = "pay.html";
        sessionStorage.jump_url=3;
    })
    $("#mainPart section:nth-child(3)").click(function(){
        location.href = "kiting.html";
    })

    var user_token =  sessionStorage.user_token;
    var u_id = sessionStorage.u_id;
    var session_id =  sessionStorage.session_id;
    $.post(commonval+"/user_info",{
        u_id:u_id,
        device:"wap",
        user_token:user_token,
        session_id:session_id
    },function(data) {
        if(data.status == 1){
           var kitingMoney =data.data.money/100;
            kitingMoney =  kitingMoney.toFixed(2);
            $("#mainPart section:nth-child(1) p:first-child").text(kitingMoney);
            sessionStorage.kitingMoney = kitingMoney;
        }else{
            createWindow("获取当前余额失败");
        }
    });
});
